package com.xzy.domain;

import lombok.Data;

import java.math.BigDecimal;
@Data
public class OrderItem {

    /**
     * 订单项编号
     */
    private Integer id;

    /**
     * 商品名
     */
    private String name;

    /**
     * 数量
     */
    private Integer count;

    /**
     * 单价
     */
    private BigDecimal price;

    /**
     * 总价
     */
    private BigDecimal total_price;

    /**
     * 所属的订单id
     */
    private String order_id;


    public OrderItem() {
    }

    public OrderItem(Integer id, String name, Integer count, BigDecimal price, BigDecimal totalPrice, String orderId) {
        this.id = id;
        this.name = name;
        this.count = count;
        this.price = price;
        this.total_price = totalPrice;
        this.order_id = orderId;
    }
}
